import request from '@/utils/request'
// 获取患者列表
export function getMemberIndex(params) {
    return request({
        url: `/member/index`,
        method: 'GET',
        params
    })
}

// 保存患者信息
export function addSave(params) {
    return request({
        url: `/member/save`,
        method: 'POST',
        params
    })
}

// 保存患者信息
export function getProfileInfo(params) {
    return request({
        url: `/member/profile`,
        method: 'GET',
        params
    })
}
// 修改患者信息
export function getSetStatus(params) {
    return request({
        url: `/member/setStatus`,
        method: 'POST',
        params
    })
}

// 获取住院药房待配药列表
export function getDrugHouse(params) {
    return request({
        url: `/h_pharmacy/getDrugHouse`,
        method: 'GET',
        params
    })
}
//配药单明细
export function getDrugHouseDetail(params) {
    return request({
        url: `/h_pharmacy/getDrugHouseDetail`,
        method: 'GET',
        params
    })
}
//一键配药
export function batchGenDrug(params) {
    return request({
        url: `/h_pharmacy/batchGenDrug`,
        method: 'post',
        params
    })
}
export function getDrugList(params) {
    return request({
        url: `/h_pharmacy/getDrugList`,
        method: 'get',
        params
    })
}
//退药功能
export function batchRefundDrug(params) {
    return request({
        url: `/h_pharmacy/batchRefundDrug`,
        method: 'post',
        params
    })
}

//停止残联
export function stopCanLian(params) {
    return request({
        url: `/disabled_member/stop`,
        method: 'post',
        params
    })
}